hopackage practice

class Trip {
    String name
    String city
    Date startDate
    Date endDate
    
    String purpose
    String notes
    Static belongsto = [owner:user]
    
    
    static constraints = {
        name blank: false, size: 3..15
        city blank: false
        
    }
    
    String toString(){
        "${name}"
    }
}
